package com.github.dice.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

public class PlayerAndDiceMapping extends Model<PlayerAndDiceMapping> {

    private static final long serialVersionUID = 1L;

    @TableId(value = "player_and_dice_mapping_id", type = IdType.AUTO)
    private Integer playerAndDiceMappingId;

    private String diceNumber;

    private Integer roomId;

    private String roomNumber;

    private String roomOwnerName;

    private Integer playerId;

    private String playerName;

    private Integer isDelete;

    public Integer getPlayerAndDiceMappingId() {
        return playerAndDiceMappingId;
    }

    public void setPlayerAndDiceMappingId(Integer playerAndDiceMappingId) {
        this.playerAndDiceMappingId = playerAndDiceMappingId;
    }
    public String getDiceNumber() {
        return diceNumber;
    }

    public void setDiceNumber(String diceNumber) {
        this.diceNumber = diceNumber;
    }
    public Integer getRoomId() {
        return roomId;
    }

    public void setRoomId(Integer roomId) {
        this.roomId = roomId;
    }
    public String getRoomNumber() {
        return roomNumber;
    }

    public void setRoomNumber(String roomNumber) {
        this.roomNumber = roomNumber;
    }
    public String getRoomOwnerName() {
        return roomOwnerName;
    }

    public void setRoomOwnerName(String roomOwnerName) {
        this.roomOwnerName = roomOwnerName;
    }
    public Integer getPlayerId() {
        return playerId;
    }

    public void setPlayerId(Integer playerId) {
        this.playerId = playerId;
    }
    public String getPlayerName() {
        return playerName;
    }

    public void setPlayerName(String playerName) {
        this.playerName = playerName;
    }
    public Integer getIsDelete() {
        return isDelete;
    }

    public void setIsDelete(Integer isDelete) {
        this.isDelete = isDelete;
    }

    @Override
    protected Serializable pkVal() {
        return this.playerAndDiceMappingId;
    }

    @Override
    public String toString() {
        return "PlayerAndDiceMapping{" +
        "playerAndDiceMappingId=" + playerAndDiceMappingId +
        ", diceNumber=" + diceNumber +
        ", roomId=" + roomId +
        ", roomNumber=" + roomNumber +
        ", roomOwnerName=" + roomOwnerName +
        ", playerId=" + playerId +
        ", playerName=" + playerName +
        ", isDelete=" + isDelete +
        "}";
    }
}
